<template>
  <div>
    <h2>App组件</h2>
    <button @click="getMsg">test</button>
    <Count ref="CountComp"/>
  </div>
</template>

<script>
import Count from "@/components/Count";
export default {
  name:"App",
  components:{
    Count
  },
  methods: {
    getMsg(){
      console.log(this);
      console.log(this.$refs);
      console.log(this.$refs.CountComp.count);
    },
  },
}
</script>